/*
 * An XML document type.
 * Localname: BrokerInformation
 * Namespace: http://www.hpsearch.org/schemas/2006/05/BSA
 * Java type: cgl.narada.mgmt.schemas.bsa.BrokerInformationDocument
 *
 * Automatically generated - do not modify.
 */
package cgl.narada.mgmt.schemas.bsa.impl;
/**
 * A document containing one BrokerInformation(@http://www.hpsearch.org/schemas/2006/05/BSA) element.
 *
 * This is a complex type.
 */
public class BrokerInformationDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements cgl.narada.mgmt.schemas.bsa.BrokerInformationDocument
{
    
    public BrokerInformationDocumentImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName BROKERINFORMATION$0 = 
        new javax.xml.namespace.QName("http://www.hpsearch.org/schemas/2006/05/BSA", "BrokerInformation");
    
    
    /**
     * Gets the "BrokerInformation" element
     */
    public cgl.narada.mgmt.schemas.bsa.BrokerInformationDocument.BrokerInformation getBrokerInformation()
    {
        synchronized (monitor())
        {
            check_orphaned();
            cgl.narada.mgmt.schemas.bsa.BrokerInformationDocument.BrokerInformation target = null;
            target = (cgl.narada.mgmt.schemas.bsa.BrokerInformationDocument.BrokerInformation)get_store().find_element_user(BROKERINFORMATION$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "BrokerInformation" element
     */
    public void setBrokerInformation(cgl.narada.mgmt.schemas.bsa.BrokerInformationDocument.BrokerInformation brokerInformation)
    {
        synchronized (monitor())
        {
            check_orphaned();
            cgl.narada.mgmt.schemas.bsa.BrokerInformationDocument.BrokerInformation target = null;
            target = (cgl.narada.mgmt.schemas.bsa.BrokerInformationDocument.BrokerInformation)get_store().find_element_user(BROKERINFORMATION$0, 0);
            if (target == null)
            {
                target = (cgl.narada.mgmt.schemas.bsa.BrokerInformationDocument.BrokerInformation)get_store().add_element_user(BROKERINFORMATION$0);
            }
            target.set(brokerInformation);
        }
    }
    
    /**
     * Appends and returns a new empty "BrokerInformation" element
     */
    public cgl.narada.mgmt.schemas.bsa.BrokerInformationDocument.BrokerInformation addNewBrokerInformation()
    {
        synchronized (monitor())
        {
            check_orphaned();
            cgl.narada.mgmt.schemas.bsa.BrokerInformationDocument.BrokerInformation target = null;
            target = (cgl.narada.mgmt.schemas.bsa.BrokerInformationDocument.BrokerInformation)get_store().add_element_user(BROKERINFORMATION$0);
            return target;
        }
    }
    /**
     * An XML BrokerInformation(@http://www.hpsearch.org/schemas/2006/05/BSA).
     *
     * This is a complex type.
     */
    public static class BrokerInformationImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements cgl.narada.mgmt.schemas.bsa.BrokerInformationDocument.BrokerInformation
    {
        
        public BrokerInformationImpl(org.apache.xmlbeans.SchemaType sType)
        {
            super(sType);
        }
        
        private static final javax.xml.namespace.QName NODEID$0 = 
            new javax.xml.namespace.QName("", "nodeId");
        private static final javax.xml.namespace.QName IPADDRESS$2 = 
            new javax.xml.namespace.QName("", "ipAddress");
        private static final javax.xml.namespace.QName NODEADDRESSASSIGNED$4 = 
            new javax.xml.namespace.QName("", "nodeAddressAssigned");
        private static final javax.xml.namespace.QName GATEWAYADDRESSASSIGNED$6 = 
            new javax.xml.namespace.QName("", "gatewayAddressAssigned");
        private static final javax.xml.namespace.QName BROKERCONNECTIONS$8 = 
            new javax.xml.namespace.QName("", "brokerConnections");
        
        
        /**
         * Gets the "nodeId" element
         */
        public java.lang.String getNodeId()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(NODEID$0, 0);
                if (target == null)
                {
                    return null;
                }
                return target.getStringValue();
            }
        }
        
        /**
         * Gets (as xml) the "nodeId" element
         */
        public org.apache.xmlbeans.XmlString xgetNodeId()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlString target = null;
                target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(NODEID$0, 0);
                return target;
            }
        }
        
        /**
         * Sets the "nodeId" element
         */
        public void setNodeId(java.lang.String nodeId)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(NODEID$0, 0);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(NODEID$0);
                }
                target.setStringValue(nodeId);
            }
        }
        
        /**
         * Sets (as xml) the "nodeId" element
         */
        public void xsetNodeId(org.apache.xmlbeans.XmlString nodeId)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlString target = null;
                target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(NODEID$0, 0);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(NODEID$0);
                }
                target.set(nodeId);
            }
        }
        
        /**
         * Gets the "ipAddress" element
         */
        public java.lang.String getIpAddress()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(IPADDRESS$2, 0);
                if (target == null)
                {
                    return null;
                }
                return target.getStringValue();
            }
        }
        
        /**
         * Gets (as xml) the "ipAddress" element
         */
        public org.apache.xmlbeans.XmlString xgetIpAddress()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlString target = null;
                target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(IPADDRESS$2, 0);
                return target;
            }
        }
        
        /**
         * Sets the "ipAddress" element
         */
        public void setIpAddress(java.lang.String ipAddress)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(IPADDRESS$2, 0);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(IPADDRESS$2);
                }
                target.setStringValue(ipAddress);
            }
        }
        
        /**
         * Sets (as xml) the "ipAddress" element
         */
        public void xsetIpAddress(org.apache.xmlbeans.XmlString ipAddress)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlString target = null;
                target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(IPADDRESS$2, 0);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(IPADDRESS$2);
                }
                target.set(ipAddress);
            }
        }
        
        /**
         * Gets the "nodeAddressAssigned" element
         */
        public boolean getNodeAddressAssigned()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(NODEADDRESSASSIGNED$4, 0);
                if (target == null)
                {
                    return false;
                }
                return target.getBooleanValue();
            }
        }
        
        /**
         * Gets (as xml) the "nodeAddressAssigned" element
         */
        public org.apache.xmlbeans.XmlBoolean xgetNodeAddressAssigned()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlBoolean target = null;
                target = (org.apache.xmlbeans.XmlBoolean)get_store().find_element_user(NODEADDRESSASSIGNED$4, 0);
                return target;
            }
        }
        
        /**
         * Sets the "nodeAddressAssigned" element
         */
        public void setNodeAddressAssigned(boolean nodeAddressAssigned)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(NODEADDRESSASSIGNED$4, 0);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(NODEADDRESSASSIGNED$4);
                }
                target.setBooleanValue(nodeAddressAssigned);
            }
        }
        
        /**
         * Sets (as xml) the "nodeAddressAssigned" element
         */
        public void xsetNodeAddressAssigned(org.apache.xmlbeans.XmlBoolean nodeAddressAssigned)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlBoolean target = null;
                target = (org.apache.xmlbeans.XmlBoolean)get_store().find_element_user(NODEADDRESSASSIGNED$4, 0);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.XmlBoolean)get_store().add_element_user(NODEADDRESSASSIGNED$4);
                }
                target.set(nodeAddressAssigned);
            }
        }
        
        /**
         * Gets the "gatewayAddressAssigned" element
         */
        public boolean getGatewayAddressAssigned()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(GATEWAYADDRESSASSIGNED$6, 0);
                if (target == null)
                {
                    return false;
                }
                return target.getBooleanValue();
            }
        }
        
        /**
         * Gets (as xml) the "gatewayAddressAssigned" element
         */
        public org.apache.xmlbeans.XmlBoolean xgetGatewayAddressAssigned()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlBoolean target = null;
                target = (org.apache.xmlbeans.XmlBoolean)get_store().find_element_user(GATEWAYADDRESSASSIGNED$6, 0);
                return target;
            }
        }
        
        /**
         * Sets the "gatewayAddressAssigned" element
         */
        public void setGatewayAddressAssigned(boolean gatewayAddressAssigned)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(GATEWAYADDRESSASSIGNED$6, 0);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(GATEWAYADDRESSASSIGNED$6);
                }
                target.setBooleanValue(gatewayAddressAssigned);
            }
        }
        
        /**
         * Sets (as xml) the "gatewayAddressAssigned" element
         */
        public void xsetGatewayAddressAssigned(org.apache.xmlbeans.XmlBoolean gatewayAddressAssigned)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlBoolean target = null;
                target = (org.apache.xmlbeans.XmlBoolean)get_store().find_element_user(GATEWAYADDRESSASSIGNED$6, 0);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.XmlBoolean)get_store().add_element_user(GATEWAYADDRESSASSIGNED$6);
                }
                target.set(gatewayAddressAssigned);
            }
        }
        
        /**
         * Gets array of all "brokerConnections" elements
         */
        public cgl.narada.mgmt.schemas.bsa.BrokerInformationDocument.BrokerInformation.BrokerConnections[] getBrokerConnectionsArray()
        {
            synchronized (monitor())
            {
                check_orphaned();
                java.util.List targetList = new java.util.ArrayList();
                get_store().find_all_element_users(BROKERCONNECTIONS$8, targetList);
                cgl.narada.mgmt.schemas.bsa.BrokerInformationDocument.BrokerInformation.BrokerConnections[] result = new cgl.narada.mgmt.schemas.bsa.BrokerInformationDocument.BrokerInformation.BrokerConnections[targetList.size()];
                targetList.toArray(result);
                return result;
            }
        }
        
        /**
         * Gets ith "brokerConnections" element
         */
        public cgl.narada.mgmt.schemas.bsa.BrokerInformationDocument.BrokerInformation.BrokerConnections getBrokerConnectionsArray(int i)
        {
            synchronized (monitor())
            {
                check_orphaned();
                cgl.narada.mgmt.schemas.bsa.BrokerInformationDocument.BrokerInformation.BrokerConnections target = null;
                target = (cgl.narada.mgmt.schemas.bsa.BrokerInformationDocument.BrokerInformation.BrokerConnections)get_store().find_element_user(BROKERCONNECTIONS$8, i);
                if (target == null)
                {
                    throw new IndexOutOfBoundsException();
                }
                return target;
            }
        }
        
        /**
         * Returns number of "brokerConnections" element
         */
        public int sizeOfBrokerConnectionsArray()
        {
            synchronized (monitor())
            {
                check_orphaned();
                return get_store().count_elements(BROKERCONNECTIONS$8);
            }
        }
        
        /**
         * Sets array of all "brokerConnections" element
         */
        public void setBrokerConnectionsArray(cgl.narada.mgmt.schemas.bsa.BrokerInformationDocument.BrokerInformation.BrokerConnections[] brokerConnectionsArray)
        {
            synchronized (monitor())
            {
                check_orphaned();
                arraySetterHelper(brokerConnectionsArray, BROKERCONNECTIONS$8);
            }
        }
        
        /**
         * Sets ith "brokerConnections" element
         */
        public void setBrokerConnectionsArray(int i, cgl.narada.mgmt.schemas.bsa.BrokerInformationDocument.BrokerInformation.BrokerConnections brokerConnections)
        {
            synchronized (monitor())
            {
                check_orphaned();
                cgl.narada.mgmt.schemas.bsa.BrokerInformationDocument.BrokerInformation.BrokerConnections target = null;
                target = (cgl.narada.mgmt.schemas.bsa.BrokerInformationDocument.BrokerInformation.BrokerConnections)get_store().find_element_user(BROKERCONNECTIONS$8, i);
                if (target == null)
                {
                    throw new IndexOutOfBoundsException();
                }
                target.set(brokerConnections);
            }
        }
        
        /**
         * Inserts and returns a new empty value (as xml) as the ith "brokerConnections" element
         */
        public cgl.narada.mgmt.schemas.bsa.BrokerInformationDocument.BrokerInformation.BrokerConnections insertNewBrokerConnections(int i)
        {
            synchronized (monitor())
            {
                check_orphaned();
                cgl.narada.mgmt.schemas.bsa.BrokerInformationDocument.BrokerInformation.BrokerConnections target = null;
                target = (cgl.narada.mgmt.schemas.bsa.BrokerInformationDocument.BrokerInformation.BrokerConnections)get_store().insert_element_user(BROKERCONNECTIONS$8, i);
                return target;
            }
        }
        
        /**
         * Appends and returns a new empty value (as xml) as the last "brokerConnections" element
         */
        public cgl.narada.mgmt.schemas.bsa.BrokerInformationDocument.BrokerInformation.BrokerConnections addNewBrokerConnections()
        {
            synchronized (monitor())
            {
                check_orphaned();
                cgl.narada.mgmt.schemas.bsa.BrokerInformationDocument.BrokerInformation.BrokerConnections target = null;
                target = (cgl.narada.mgmt.schemas.bsa.BrokerInformationDocument.BrokerInformation.BrokerConnections)get_store().add_element_user(BROKERCONNECTIONS$8);
                return target;
            }
        }
        
        /**
         * Removes the ith "brokerConnections" element
         */
        public void removeBrokerConnections(int i)
        {
            synchronized (monitor())
            {
                check_orphaned();
                get_store().remove_element(BROKERCONNECTIONS$8, i);
            }
        }
        /**
         * An XML brokerConnections(@).
         *
         * This is a complex type.
         */
        public static class BrokerConnectionsImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements cgl.narada.mgmt.schemas.bsa.BrokerInformationDocument.BrokerInformation.BrokerConnections
        {
            
            public BrokerConnectionsImpl(org.apache.xmlbeans.SchemaType sType)
            {
                super(sType);
            }
            
            private static final javax.xml.namespace.QName LINKID$0 = 
                new javax.xml.namespace.QName("", "linkId");
            private static final javax.xml.namespace.QName DESTINATION$2 = 
                new javax.xml.namespace.QName("", "destination");
            private static final javax.xml.namespace.QName PORT$4 = 
                new javax.xml.namespace.QName("", "port");
            private static final javax.xml.namespace.QName PROTOCOL$6 = 
                new javax.xml.namespace.QName("", "protocol");
            
            
            /**
             * Gets the "linkId" element
             */
            public java.lang.String getLinkId()
            {
                synchronized (monitor())
                {
                    check_orphaned();
                    org.apache.xmlbeans.SimpleValue target = null;
                    target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(LINKID$0, 0);
                    if (target == null)
                    {
                      return null;
                    }
                    return target.getStringValue();
                }
            }
            
            /**
             * Gets (as xml) the "linkId" element
             */
            public org.apache.xmlbeans.XmlString xgetLinkId()
            {
                synchronized (monitor())
                {
                    check_orphaned();
                    org.apache.xmlbeans.XmlString target = null;
                    target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(LINKID$0, 0);
                    return target;
                }
            }
            
            /**
             * Sets the "linkId" element
             */
            public void setLinkId(java.lang.String linkId)
            {
                synchronized (monitor())
                {
                    check_orphaned();
                    org.apache.xmlbeans.SimpleValue target = null;
                    target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(LINKID$0, 0);
                    if (target == null)
                    {
                      target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(LINKID$0);
                    }
                    target.setStringValue(linkId);
                }
            }
            
            /**
             * Sets (as xml) the "linkId" element
             */
            public void xsetLinkId(org.apache.xmlbeans.XmlString linkId)
            {
                synchronized (monitor())
                {
                    check_orphaned();
                    org.apache.xmlbeans.XmlString target = null;
                    target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(LINKID$0, 0);
                    if (target == null)
                    {
                      target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(LINKID$0);
                    }
                    target.set(linkId);
                }
            }
            
            /**
             * Gets the "destination" element
             */
            public java.lang.String getDestination()
            {
                synchronized (monitor())
                {
                    check_orphaned();
                    org.apache.xmlbeans.SimpleValue target = null;
                    target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(DESTINATION$2, 0);
                    if (target == null)
                    {
                      return null;
                    }
                    return target.getStringValue();
                }
            }
            
            /**
             * Gets (as xml) the "destination" element
             */
            public org.apache.xmlbeans.XmlString xgetDestination()
            {
                synchronized (monitor())
                {
                    check_orphaned();
                    org.apache.xmlbeans.XmlString target = null;
                    target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(DESTINATION$2, 0);
                    return target;
                }
            }
            
            /**
             * Sets the "destination" element
             */
            public void setDestination(java.lang.String destination)
            {
                synchronized (monitor())
                {
                    check_orphaned();
                    org.apache.xmlbeans.SimpleValue target = null;
                    target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(DESTINATION$2, 0);
                    if (target == null)
                    {
                      target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(DESTINATION$2);
                    }
                    target.setStringValue(destination);
                }
            }
            
            /**
             * Sets (as xml) the "destination" element
             */
            public void xsetDestination(org.apache.xmlbeans.XmlString destination)
            {
                synchronized (monitor())
                {
                    check_orphaned();
                    org.apache.xmlbeans.XmlString target = null;
                    target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(DESTINATION$2, 0);
                    if (target == null)
                    {
                      target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(DESTINATION$2);
                    }
                    target.set(destination);
                }
            }
            
            /**
             * Gets the "port" element
             */
            public int getPort()
            {
                synchronized (monitor())
                {
                    check_orphaned();
                    org.apache.xmlbeans.SimpleValue target = null;
                    target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PORT$4, 0);
                    if (target == null)
                    {
                      return 0;
                    }
                    return target.getIntValue();
                }
            }
            
            /**
             * Gets (as xml) the "port" element
             */
            public org.apache.xmlbeans.XmlInt xgetPort()
            {
                synchronized (monitor())
                {
                    check_orphaned();
                    org.apache.xmlbeans.XmlInt target = null;
                    target = (org.apache.xmlbeans.XmlInt)get_store().find_element_user(PORT$4, 0);
                    return target;
                }
            }
            
            /**
             * Sets the "port" element
             */
            public void setPort(int port)
            {
                synchronized (monitor())
                {
                    check_orphaned();
                    org.apache.xmlbeans.SimpleValue target = null;
                    target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PORT$4, 0);
                    if (target == null)
                    {
                      target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(PORT$4);
                    }
                    target.setIntValue(port);
                }
            }
            
            /**
             * Sets (as xml) the "port" element
             */
            public void xsetPort(org.apache.xmlbeans.XmlInt port)
            {
                synchronized (monitor())
                {
                    check_orphaned();
                    org.apache.xmlbeans.XmlInt target = null;
                    target = (org.apache.xmlbeans.XmlInt)get_store().find_element_user(PORT$4, 0);
                    if (target == null)
                    {
                      target = (org.apache.xmlbeans.XmlInt)get_store().add_element_user(PORT$4);
                    }
                    target.set(port);
                }
            }
            
            /**
             * Gets the "protocol" element
             */
            public java.lang.String getProtocol()
            {
                synchronized (monitor())
                {
                    check_orphaned();
                    org.apache.xmlbeans.SimpleValue target = null;
                    target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PROTOCOL$6, 0);
                    if (target == null)
                    {
                      return null;
                    }
                    return target.getStringValue();
                }
            }
            
            /**
             * Gets (as xml) the "protocol" element
             */
            public org.apache.xmlbeans.XmlString xgetProtocol()
            {
                synchronized (monitor())
                {
                    check_orphaned();
                    org.apache.xmlbeans.XmlString target = null;
                    target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(PROTOCOL$6, 0);
                    return target;
                }
            }
            
            /**
             * Sets the "protocol" element
             */
            public void setProtocol(java.lang.String protocol)
            {
                synchronized (monitor())
                {
                    check_orphaned();
                    org.apache.xmlbeans.SimpleValue target = null;
                    target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PROTOCOL$6, 0);
                    if (target == null)
                    {
                      target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(PROTOCOL$6);
                    }
                    target.setStringValue(protocol);
                }
            }
            
            /**
             * Sets (as xml) the "protocol" element
             */
            public void xsetProtocol(org.apache.xmlbeans.XmlString protocol)
            {
                synchronized (monitor())
                {
                    check_orphaned();
                    org.apache.xmlbeans.XmlString target = null;
                    target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(PROTOCOL$6, 0);
                    if (target == null)
                    {
                      target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(PROTOCOL$6);
                    }
                    target.set(protocol);
                }
            }
        }
    }
}
